package team.first.movieapiv2pro.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: HAPPY
 * @Project_name: project
 * @Package_name: team.first.moiveapiv1.dto
 * @Date: 2021/11/25 13:48
 * @Description: post请求传入的电影信息封装类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RequestMovie {
    /**
     * 原始标题
     */
    @ApiModelProperty(value = "原始标题", example = "happy is so handsome")
    private String originalTitle;

    /**
     * 中文标题
     */
    @ApiModelProperty(value = "中文标题", example = "杨乐真帅")
    private String chineseTitle;

    /**
     * 上映年份
     */
    @ApiModelProperty(value = "上映年份", example = "2019")
    private Integer startYear;

    /**
     * 下架年份
     */
    @ApiModelProperty(value = "下架年份", example = "2021")
    private Integer endYear;

    /**
     * 地区
     */
    @ApiModelProperty(value = "地区", example = "陕西")
    private String region;

    /**
     * 语言
     */
    @ApiModelProperty(value = "语言", example = "中文")
    private String language;

    /**
     * 体裁编号
     */
    @ApiModelProperty(value = "体裁编号", example = "1,2,3,4")
    private Integer[] genreIds;

    /**
     * 页码
     */
    @ApiModelProperty(value = "页码", example = "6")
    private Integer pageNumber;

    /**
     * 页大小
     */
    @ApiModelProperty(value = "页大小", example = "66")
    private Integer pagerSize;

    /**
     * 排序字段
     */
    @ApiModelProperty(value = "排序字段", example = "帅")
    private String orderField;

    /**
     * 排序方式
     */
    @ApiModelProperty(value = "排序方式", example = "desc")
    private String orderDirection;

    /**
     * 从第几个开始
     */
    @ApiModelProperty(value = "从第几个开始", example = "1")
    private Integer offset;
}
